import Vue from "vue";
// 按需引入vant
import {
  Button,
  NavBar,
  Icon,
  Form,
  Field,
  Grid,
  GridItem,
  Tabbar,
  TabbarItem,
} from "vant";
import "vant/lib/index.css";
Vue.use(Button);
Vue.use(NavBar);
Vue.use(Icon);
Vue.use(Form);
Vue.use(Field);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Tabbar);
Vue.use(TabbarItem);
// 引入search
import { Search } from "vant";

Vue.use(Search);

// 引入tag
import { Tag } from "vant";

Vue.use(Tag);

// 引入Layout 布局
import { Col, Row } from "vant";

Vue.use(Col);
Vue.use(Row);

// 引入list
import { List } from "vant";

Vue.use(List);
// 单元格
import { Cell, CellGroup } from "vant";

Vue.use(Cell);
Vue.use(CellGroup);

// tab
import { Tab, Tabs } from "vant";

Vue.use(Tab);
Vue.use(Tabs);

// 下拉菜单
import { DropdownMenu, DropdownItem } from "vant";

Vue.use(DropdownMenu);
Vue.use(DropdownItem);

// 卡片
import { Card } from "vant";

Vue.use(Card);
import { Sticky } from "vant";

Vue.use(Sticky);
import { Overlay } from "vant";

Vue.use(Overlay);

import { Swipe, SwipeItem } from "vant";

Vue.use(Swipe);
Vue.use(SwipeItem);

import { Lazyload } from "vant";



// 注册时可以配置额外的选项
Vue.use(Lazyload, {
  lazyComponent: true,
});
